package com.lagou.edu.blog.service.impl;

import com.lagou.edu.blog.pojo.Article;
import com.lagou.edu.blog.repository.IArticleRepository;
import com.lagou.edu.blog.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

/**
 * @ProjectName: s1-4
 * @Title: ArticleServiceImpl
 * @Package: com.lagou.edu.blog.service.impl
 * @Description: Article Service Impl
 * @author: Ian
 * @date: 27/12/2020 9:09 PM
 * @version: V1.0.0
 */
@Service
public class ArticleServiceImpl implements IArticleService {

    @Autowired
    private IArticleRepository articleRepository;

    @Override
    public Page<Article> findAll(Pageable pageable) {
        return articleRepository.findAll(pageable);
    }
}
